package cn.yll.common.module;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * jwt payload
 * @author yangll
 */
@Data
@Builder
@ApiModel("jwt负载实体")
public class PayloadDto {

    @ApiModelProperty("主题")
    private String sub;

    @ApiModelProperty(value = "生成时间")
    private Long iat;

    @ApiModelProperty(value = "失效时间")
    private Long exp;

    @ApiModelProperty(value = "jwtId")
    private String jti;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

}
